package com.ruoyi.business.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账户对象 bu_account
 *
 * @author ruoyi
 * @date 2024-09-23
 */
public class BuAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 分润金额 */
    @Excel(name = "分润金额")
    private BigDecimal earningsAmount;

    /** 提现金额 */
    @Excel(name = "提现金额")
    private BigDecimal payoutAmount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setEarningsAmount(BigDecimal earningsAmount)
    {
        this.earningsAmount = earningsAmount;
    }

    public BigDecimal getEarningsAmount()
    {
        return earningsAmount;
    }
    public void setPayoutAmount(BigDecimal payoutAmount)
    {
        this.payoutAmount = payoutAmount;
    }

    public BigDecimal getPayoutAmount()
    {
        return payoutAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("earningsAmount", getEarningsAmount())
            .append("payoutAmount", getPayoutAmount())
            .toString();
    }
}
